
<style type="text/css">
.aui_main{
vertical-align:top;
text-align:left
}
.photoInfoBlock{
	overflow:hidden;
	border:1px solid red;
	background:#fff
}
.photoInfoBlock .photoLeft{
margin: 10px;
width: 430px;
float: left;
border-right: 1px solid #dadada;
display: inline;
}
.photoInfoBlock .photoRight{
	margin: 10px 10px 10px 0px;
float: left;
width: 260px;
display: inline;
}
.photoInfoEntry{
	margin-bottom:2px;	
}
	.photoInfoEntry label{
display: inline-block;
vertical-align: middle;
font-size: 14px;
padding: 0 5px;
width: 100px;
text-align: right;
font-family: 'microsoft yahei','微软雅黑','黑体';
}
.shortLabel label{
	width:60px;	
}
label{vertical-align:middle}
input.form_input {
width: 200px;
height: 20px;
line-height: 20px;
}
.photoChkbox{
	width:180px;
	overflow:hidden;
	display:inline-block;	
}
.photoChkbox label{
padding: 0;
width: 60px;
text-align: left;
font-size: 12px;
color: #333;
vertical-align:middle;
	}

</style>
<form method="post" action="" onSubmit="return false;" id="photo-info-form">
<div>
<table class="table">
	<thead>
    	<tr>
        	<th width="190">
            相片预览
            </th>
            <th>
            相片信息
            </th>
        </tr>
    </thead>
    <tbody>
    	<tr>
        	<td>
            <div>
            <img src="http://facesbaby.u.qiniudn.com/{$rs['photo_path']}?imageView/1/w/190/h/113" />
            </div>
            </td>
            <td valign="top">
            
            <div id="photoInfo">
            <input type="hidden" name="photo_id[]" value="{$rs['id']}">
            <div class="photoInfoBlock" id="photoInfoBlock">
            
            <div class="photoLeft">
            
            <div class="photoInfoEntry"><label>当前宝宝:</label>
            
            {$fb_baby_array['session_fb']['baby_realname']}</div>
            
            <div class="photoInfoEntry"><label>我的宝宝:</label>
            <div class="photoChkbox">
            <?php
            foreach($baby_mine as $k=>$v){
            	if($v['baby_id']==$fb_baby_array['session_fb']['baby_id']){
            ?>
            <label><input type="checkbox" name="baby_id[{$rs['id']}][]" value="{$v['baby_id']}" checked>{$v['baby_realname']}<small>{$v['baby_nickname']}</small></label>
            <?php
            }else{
            ?>
            <label><input type="checkbox" name="baby_id[{$rs['id']}][]" value="{$v['baby_id']}">{$v['baby_realname']}<small>{$v['baby_nickname']}</small></label>
            <?php
            }
            }
            
            ?>
            
            
            </div>
            
            </div>
            
            
            
            <div class="photoInfoEntry"><label>我关注的宝宝:</label><div class="photoChkbox">
            <?php
            foreach($baby_focus as $k=>$v){
            ?>
            <label><input type="checkbox" name="baby_id[{$rs['id']}][]" value="{$v['baby_id']}">{$v['baby_realname']}<small>{$v['baby_nickname']}</small></label>
            <?php
            }
            ?>
            </div></div><div class="photoInfoEntry"><label>标题:</label><input type="text" class="form_input" value="{$rs['photo_topic']}" name="photo_title[{$rs['id']}][]"></div>
            
            <div class="photoInfoEntry"><label>分类标签:</label>
            
            <div id="label_SWFUpload_0_0">
            
            <?php
            $photo_label = ltrim(rtrim($rs['photo_label'], ","),",");
            $photo_label_array = explode(",",$photo_label);
            
            foreach($fb_labels as $k=>$v){
            	if(in_array($v['lb_id'],$photo_label_array)){
                	?>
                    <span class="label label-info">{$v['lb_name']}<input type="hidden" name="photo_label[{$rs['id']}][]" value="{$v['lb_id']}"><a href="javascript:void(0)" class="close" data-dismiss="alert">×</a></span>&nbsp;&nbsp;
                    <?php
                    //echo $v['lb_name'].'<br>';
                }
            }
            ?>
            
            </div>
            
            <a onclick="labelDialog('DSCN2502.JPG','SWFUpload_0_0','label_SWFUpload_0_0','{$rs['id']}')" class="label_add" id="label_SWFUpload_0_0" href="javascript:void(0)">添加标签</a></div>
            
            <div class="photoInfoEntry"><label>拍摄日期:</label>
            <?php
            if($rs['is_edited']!="0"){
            ?>
            <input type="text">
            <?php
            }else{
            //echo $v['photo_year'].'-'.$v['photo_month'].'-'.$v['photo_day'].' '.$v['photo_hour'].':'.$v['photo_minue'].':'.$v['photo_second'].'';
            echo date("Y-m-d H:i:s",$rs['photo_createdate']);
            }
            ?>
            
            </div></div>
            
            访问权限{$rs['photo_limit_view']}<br>
            权限详细{$rs[photo_limit_group'']}
            
            <div class="photoRight"><div class="photoInfoEntry shortLabel"><label>访问权限:</label><select style="width:170px" name="photo_role[{$rs['id']}][]" class="photo_role"><option value="f">对我关注的人公开</option><option value="o">公开(宝宝展示页)</option><option value="p">私人</option></select></div><div class="photoInfoEntry shortLabel roleGroup" id="group_SWFUpload_0_0"><label>用户组:</label><div class="photoChkbox"><label><input type="checkbox" value="r" class="groupchk_r groupchk" name="photo_group[{$rs['id']}][]" checked="">亲人</label><label><input type="checkbox" value="f" class="groupchk_f groupchk" name="photo_group[{$rs['id']}][]" checked="">朋友</label></div></div></div>
            
            </div>
            
            </div>
            </td>
        </tr>
    </tbody>
</table>

</div>

<div class="form-actions" id="form-actions" style=""><button onClick="postPhotoForm()" type="button" class="btn btn-primary">提交</button></div>
</form>